package com.lottery.game.controller.v2.register.request;
import com.lottery.game.common.BaseObject;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel(value="PhoneCheckRequest", description="检查手机号请求")
public class PhoneCheckRequest extends BaseObject {

	private static final long serialVersionUID = -2289649596049381042L;

	@ApiModelProperty(value="phone", name="手机号", required = true)
	@NotEmpty(message = "手机号不能为空")
  @Pattern(regexp="^((13[0-9])|(17[0-9])|(15[^4,\\D])|(18[0,5-9]))\\d{8}$", message="手机号格式不正确")
	private String phone;

}
